import { defineConfig } from '../defineConfig'
// import { DefaultKey, SiteType } from '../type'
import { DefaultKey } from '../type'

const siteConfig = {
  com: {
    // # 接口地址 dev 环境
    NEXT_PUBLIC_API_PATHNAME: 'https://dev-rt-api.olightstore.com',
    // # CDN地址 dev 环境
    NEXT_PUBLIC_CDN_PATH: 'https://dev-rt.olicdn.com',
    // # dev 环境 URL
    NEXT_PUBLIC_SITE_PATH: 'https://dev-rt.olightstore.com/'
  }
}
export function createLocalConfig() {
  return defineConfig({
    env: 'dev',
    apiURL: 'http://localhost:4000',
    mocksEnabled: process.env['ENABLE_MOCKS'] === 'true',
    site: siteConfig[(process.env['NEXT_PUBLIC_SITE_MOCK'] || 'com') as DefaultKey]
  })
}
